package com.zhiche.lisa.bms.pojo.vo.capital;

import com.zhiche.lisa.bms.dao.model.capital.CapitalArrDtl;
import com.zhiche.lisa.bms.dao.model.capital.CapitalArrangement;
import com.zhiche.lisa.bms.dao.model.capital.CapitalArrangementDtl;
import com.zhiche.lisa.bms.dao.model.pay.PayApply;
import com.zhiche.lisa.bms.pojo.bo.capital.CapitalArrDtlAndApplyBO;
import com.zhiche.lisa.bms.pojo.bo.capital.CapitalArrangementAndApplyBO;
import org.springframework.util.CollectionUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: liuanshun
 * @Description:
 * @Date: Create in 9:56 2018/9/30
 */
public class CapitalArrangementAndDtl  extends CapitalArrangement {
//    private List<CapitalArrangementAndApplyBO> capitalArrangementDtls;

    private List<CapitalArrDtlAndApplyBO> capitalArrDtls;

    private List<PayApply> payApplies;

//    public List<CapitalArrangementAndApplyBO> getCapitalArrangementDtls() {
//        return capitalArrangementDtls;
//    }
//
//    public void setCapitalArrangementDtls(List<CapitalArrangementAndApplyBO> capitalArrangementDtls) {
//        this.capitalArrangementDtls = capitalArrangementDtls;
//    }

    public List<PayApply> getPayApplies() {
        return payApplies;
    }

    public void setPayApplies(List<PayApply> payApplies) {
        this.payApplies = payApplies;
    }

    public List<CapitalArrDtlAndApplyBO> getCapitalArrDtls() {
        return capitalArrDtls;
    }

    public void setCapitalArrDtls(List<CapitalArrDtlAndApplyBO> capitalArrDtls) {
        this.capitalArrDtls = capitalArrDtls;
    }

//    public void addCapitalArrangementDtls(CapitalArrangementAndApplyBO capitalArrangementDtl) {
//        if(CollectionUtils.isEmpty(this.capitalArrangementDtls)){
//            this.capitalArrangementDtls=new ArrayList<CapitalArrangementAndApplyBO>();
//        }
//        this.capitalArrangementDtls.add(capitalArrangementDtl);
//    }

    public void addPayApplies(PayApply payApply) {
        if(CollectionUtils.isEmpty(this.payApplies)){
            this.payApplies=new ArrayList<PayApply>();
        }
        this.payApplies.add(payApply);
    }

    public void addCapitalArrDtls(CapitalArrDtlAndApplyBO capitalArrDtl) {
        if(CollectionUtils.isEmpty(this.capitalArrDtls)){
            this.capitalArrDtls=new ArrayList<CapitalArrDtlAndApplyBO>();
        }
        this.capitalArrDtls.add(capitalArrDtl);
    }
}
